-- 初始化随机数种子

LogInfo = Log.Info
LogError = Log.Error
LogDebug = Log.Debug


function print(...)
    local strs = {...}
    for a,info in ipairs(strs) do
        strs[a] = tostring(info) or 'nil'
    end
    Log.Debug(table.concat(strs,'\t'))
end

function error_msg(msg)
    -- 错误回调,错误消息会发送到war3客户端控制台
    Log.Error(tostring(msg))
end

Log.Debug("启动云代码")
xpcall(function()
    require('core.init')
    require('game.init')
end,error_msg)
